import request from '@/utils/request'

// 查询术语分类列表
export function listCommontaginfo(query) {
  return request({
    // url: '/business/commontaginfo/list',
    url:'/user/commontermtype/page',
    method: 'post',
    data: query
  })
}

// // 修改术语分类
// export function getCommontaginfo(data) {
//   return request({
//     url: '/user/commontermtype/page',
//     method: 'post',
//     data: data
//   })
// }

// 新增术语分类
export function addCommontaginfo(data) {
  return request({
    // url: '/business/commontaginfo',
    url:'/user/commontermtype/add',
    method: 'post',
    data: data
  })
}

// 修改术语分类
export function updateCommontaginfo(data) {
  return request({
    // url: '/business/commontaginfo',
    url:'/user/commontermtype/edit',
    method: 'post',
    data: data
  })
}

// 删除部门公共标签
export function delCommontaginfo(id) {
  return request({
    url: '/business/commontaginfo/' + id,
    method: 'delete'
  })
}

// 导出术语分类
export function exportCommontaginfo(query) {
  return request({
    url: '/business/commontaginfo/export',
    method: 'get',
    params: query
  })
}